Skip to content

Fix global definition of programming language#585

Merged
jorg-vr merged 2 commits intomasterfrom
fix/programming-language
Apr 16, 2025
Merged

Fix global definition of programming language#585
jorg-vr merged 2 commits intomasterfrom
fix/programming-language

Conversation

@jorg-vr
Copy link
Contributor

@jorg-vr jorg-vr commented Apr 8, 2025

This pr disables validation of tested-dsl-expression if the programming language is specified in the root.
If a programming language is specified in the root, statements and expressions are not parsed and thus don't need to match the validation.

This is a different solution than the one proposed in: #578

The main difference is that the proposed solution told the schema that in case a programming language is specified the format is not required. While in my solution, the schema still 'requires' the format, but the validation of this format becomes more flexible in case the root language is specified.

I chose this second option as this had a way smaller impact on the code, and the validation of the format happened in custom python code anyway.

  • Tests are added

closes #578

@jorg-vr jorg-vr added the bug Something isn't working label Apr 8, 2025
@jorg-vr jorg-vr self-assigned this Apr 8, 2025
@jorg-vr jorg-vr marked this pull request as ready for review April 8, 2025 11:22
@jorg-vr jorg-vr requested review from bmesuere and niknetniko April 8, 2025 11:22
Copy link
Member

@niknetniko niknetniko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A much better approach than what was suggested in the original issue I think.

@jorg-vr jorg-vr merged commit f787f38 into master Apr 16, 2025
9 checks passed
@jorg-vr jorg-vr deleted the fix/programming-language branch April 16, 2025 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Top-level specification of programming language is broken

3 participants